home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / Dia_de_Chuva.swf / scripts / frame_3 / DoAction.as
Encoding:
Text File  |  2011-12-21  |  1.6 KB  |  45 lines

  1. stop();
  2. if(ai_01.ag._currentframe == 2 || ai_01.ag._currentframe == 3 || ai_01.ag._currentframe == 4 || ai_01.ag._currentframe == 5)
  3. {
  4.    ai_01.m.gotoAndPlay("m1");
  5. }
  6. else if(ai_01.eye._currentframe == 7 || ai_01.eye._currentframe == 8 || ai_01.eye._currentframe == 9 || ai_01.eye._currentframe == 10)
  7. {
  8.    ai_01.m.gotoAndPlay("m1");
  9. }
  10. else if(ai_01.lip._currentframe == 7 || ai_01.lip._currentframe == 8 || ai_01.lip._currentframe == 9 || ai_01.lip._currentframe == 10)
  11. {
  12.    ai_01.m.gotoAndPlay("m1");
  13. }
  14. else if(ai_01.eye_i._currentframe == 7 || ai_01.eye_i._currentframe == 8 || ai_01.eye_i._currentframe == 9 || ai_01.eye_i._currentframe == 10 || ai_01.eye_i._currentframe == 11 || ai_01.eye_i._currentframe == 12 || ai_01.eye_i._currentframe == 13 || ai_01.eye_i._currentframe == 14 || ai_01.eye_i._currentframe == 15)
  15. {
  16.    ai_01.m.gotoAndPlay("m1");
  17. }
  18. else if(ai_01.up._currentframe == 1 && ai_01.down._currentframe == 1 && ai_01.sh._currentframe == 1)
  19. {
  20.    ai_01.m.gotoAndPlay("m3");
  21. }
  22. else
  23. {
  24.    ai_01.m.gotoAndPlay("m2");
  25. }
  26. var game_name = "R000104";
  27. var Objstring = game_name + "R400000R270000";
  28. var ObjLst = ["unsan","ht","glra","ea","head","bag","neck","joki","two","thr","pant","gudo","ra"];
  29. folderName = [14,15,16,17,18,19,20,21,22,23,24,25,26];
  30. var game_value = "R";
  31. trace(objLst);
  32. var i = 0;
  33. while(i < ObjLst.length)
  34. {
  35.    var objName = ObjLst[i];
  36.    var objNum = ai_01[objName]._currentframe - 1;
  37.    if(objNum != 0)
  38.    {
  39.       Objstring = Objstring + "R" + folderName[i] + "000" + objNum;
  40.    }
  41.    i++;
  42. }
  43. trace("Objstring=" + Objstring);
  44. getURL("JavaScript:AvatarJoin(\'" + Objstring + "\',\'" + game_value + "\')","");
  45.